@echo off

@rem start cmd /k echo Hello, World!  #  # 执行完毕以后，新开的窗口不会自动关闭
@rem start cmd /C echo Hello, World! pause    # 执行完毕以后，新开的窗口会自动关闭

@rem start cmd /C pause    # 执行完毕以后，新开的窗口会自动关闭

@rem set file_name=a.txt

set t=set

@rem echo %file_name%
set file_name=get_line_and_next.bat

set n=NewFile.txt

for /f "tokens=1,2 delims=:" %%a in ('findstr /n "%t%" "%file_name%"') do (
set h=%%a
@rem pause
@rem echo %%b>"%n%"
goto next
)
:next
for /f "skip=%h% delims=" %%c in ('type "%file_name%"') do (
echo %%c>"%n%"
@rem pause
type %n%
exit /B 0
)                                         


exit /B 0